.config-card {
  background: rgba(2, 5, 6, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0px 4px 24px -8px rgba(0, 0, 0, 0.2),
    0px 3px 12px -4px rgba(0, 0, 0, 0.1), 0px 2px 3px -2px rgba(0, 0, 51, 0.06);
}

.config-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.config-card-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.config-card-header .white {
  color: rgba(255, 255, 255, 0.9);
}

.config-card-description {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  font-size: 13px;
}

/* Toggle Group Styles */
.toggle-buttons {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 8px;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-button {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
}

.toggle-button:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.toggle-button.active {
  background: rgba(255, 255, 255, 0.9);
  color: rgba(2, 5, 6, 0.95);
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06);
}

/* Number Input Styles */
.number-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  transition: all 0.2s ease;
}

.llm-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  transition: all 0.2s ease;
  height: 45px;
}

.llm-input:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.llm-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.number-input:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.number-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.number-input.fit-content {
  width: 64px;
  min-width: 48px;
}

/* Switch Control Styles */
.switch-root {
  width: 42px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
}

.switch-root[data-state="checked"] {
  background: rgba(255, 255, 255, 0.5);
}

.switch-thumb {
  display: block;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  transform: translateX(2px);
}

.switch-thumb[data-state="checked"] {
  transform: translateX(20px);
  background: rgba(2, 5, 6, 0.95);
}

.docs-text {
  cursor: pointer;
}

.docs-text-hidden {
  display: none;
}

.config-card-header .docs-text {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.config-card:hover .docs-text {
  opacity: 1;
}

.segment-processing-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.model-selector {
  position: relative;
  width: 100%;
}

.model-selector-button {
  width: 100%;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.model-selector-button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.segment-dropdown-menu {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
  background: rgba(2, 5, 6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  backdrop-filter: blur(12px);
  box-shadow: 0px 4px 24px -8px rgba(0, 0, 0, 0.2),
    0px 3px 12px -4px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.segment-dropdown-item {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.segment-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.segment-dropdown-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 1);
}

.segment-dropdown-item.modified {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.05);
}

.segment-dropdown-item.modified:hover {
  background: rgba(255, 255, 255, 0.08);
}

.segment-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.mb-4 {
  margin-bottom: 16px;
}

.property-details {
  background: rgba(255, 255, 255, 0);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.add-property-button {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.add-property-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.delete-button {
  width: 100%;
  padding: 12px;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.delete-button:hover {
  background: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 0.3);
}

textarea.number-input {
  resize: vertical;
  min-height: 80px;
}

select.number-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.toggle-switch {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
}

.toggle-switch input[type="checkbox"]:checked {
  background-color: #ffffff;
  position: relative;
}

.toggle-switch input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  color: #000000;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mb-4 {
  margin-bottom: 16px;
}

.ml-2 {
  margin-left: 8px;
}

.chunk-processing-container {
  /* copy whatever .segment-processing-container does */
  display: flex;
  flex-direction: column;
}

.chunk-processing-container .segment-config-grid {
  /* reuse the grid styling */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
